package com.ocom.webapi.vo.staffpage;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ocom.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
public class ImportVo implements Serializable {
    private static final long serialVersionUID = -1078164438385246472L;

    @Excel(name = "姓名")
    private String pName;

    @Excel(name = "性别(男/女)")
    private Integer pSex;

    @Excel(name = "人员编号")
    private String pCode;

    @Excel(name = "部门名称(多级部门以”/”号隔开)")
    private String deptName;

    @Excel(name = "人员密码")
    private String pPwd;

    @Excel(name = "联系电话")
    private String pPhone;

    @Excel(name = "身份证号码")
    private String pIdentity;

  @Excel(name = "银行卡号")
  private String bankNo;

    @Excel(name = "住址")
    private String pAddress;

    @Excel(name = "人脸图像地址")
    private String pPhotoUrl;


    @Excel(name = "账户类型(只能填一种)")
    private String accTypeId;

    @Excel(name = "标签(多个标签用|分隔)")
    private String perTag;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+08")
    @Excel(name = "账户有效期 格式 yyyy-MM-dd")
    private Date accountEndDate;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("pName", getPName())
                .append("pSex", getPSex())
                .append("pCode", getPCode())
                .append("deptName", getDeptName())
                .append("pPwd", getPPwd())
                .append("pPhone", getPPhone())
                .append("pIdentity", getPIdentity())
                .append("pAddress", getPAddress())
                .append("pPhotoUrl",getPPhotoUrl())
                .append("accTypeId",getAccTypeId())
                .append("perTag",getPerTag())
                .append("accountEndDate",getAccountEndDate())
                .toString();
    }
}
